Part Number Hot Search : 
TLGE18TP NTE951 5962F9 UTC8122 45985 F4041BP A6474 KTD2059
Product Description
Full Text Search
 

To Download MAS6512 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  da6512.000 11 july, 2012 i 2 c is a registered trademark of nxp. 1 (26) MAS6512 capacitive sensor signal interface ic ? single or dual capacitance sensors ? low voltage operation ? low power consumption ? on chip temperature sensor ? internal clock oscillator ? 16-bit ratiometric ? ?? ? ? cdc ? eeprom calibration memory ? serial interface description MAS6512 capacitive sensor signal interface ic can interface both single and dual capacitance sensors. it uses a 16-bit capacitance-to-digital converter (cdc), which employs a delta-sigma (  ) conversion technique. the output data from the  -modulator is processed by an on-chip decimator filter, producing a high resolution conversion result. the converter is run by an internal clock oscillator making an external converter clock unnecessary. the converter input range is programmable to meet various sensor offset and changing capacitance values. maximum sensor capacitance is 40pf but higher maximum value can be reached by using slower conversion speed or scaling the signal by using an external series capacitor. the measurement resolution depends on the programmed capacitance range and over sampling ratio (osr) selections. MAS6512 supports two capacitance measurement modes. the output can be proportional either to capacitance difference (c s -c r ) or to capacitance ratio (c s -c r )/c s . the ic is designed especially to meet the requirement for low power consumption, thus making it an ideal choice for battery powered systems. current consumption values of 28 a with high resolution or 1.9 a with low resolution, at a conversion rate of one conversion per second, can be achieved. in addition to measuring capacitance the device has an internal temperature sensor for temperature measurement and temperature compensation purposes. the 256-bit eeprom memory stores trimming and calibration coefficients on chip. a serial interface, compatible with a bi- directional 2-wire i 2 c bus and 4-wire spi bus, is used for conversion setup, starting a conversion and reading the conversion result. features applications ? single and differential capacitive sensors ? sensor offset and gain adjustment ? changing capacitance range 2pf? 30pf ? internal offset capacitance matrix 0pf?22pf ? external capacitance up to 40pf (or higher using external clock) ? resolution 14 bit (osr=4096, ? c=20pf) ? internal clock oscillator ? on chip temperature sensor -40 c...+85 c ? low voltage operation 1.8 v?3.6 v ? low supply current: 1.9 a...28 a ? conversion time 5.8ms...82.6ms (12hz...173hz) ? 16-bit ratiometric ? cdc ? internal 256-bit eeprom calibration memory ? i 2 c and spi compatible serial interface ? qfn-16 package ? capacitive pressure sensors ? humidity sensors ? medical devices ? flow meters ? sport watches ? altimeter and barometer systems ? mobile and battery powered systems ? low frequency measurement applications ? current/power consumption critical systems ? industrial and process control applications in noisy environments this is preliminary information on a new product under development. micro analog systems oy reserves the right to make any changes without notice.
da6512.000 11 july, 2012 i 2 c is a registered trademark of nxp. 2 (26) block diagram figure 1. MAS6512 block diagram functional description MAS6512 can interface both single and dual capacitance sensors. single capacitance sensors should be connected between the cs and the cc inputs. the second capacitor of a dual capacitance sensor should be connected between the cr and the cc inputs. a capacitance-to-digital converter (cdc) converts the input capacitances into a 16-bit output word (code). the converter front-end can be configured either for capacitance difference (c s -c r ) or capacitance ratio (c s -c r )/c s measurement mode. converter resolution is selected by the over sampling ratio (osr) setting. higher osr corresponds to higher resolution but also longer conversion time. there are two internal 22pf capacitance matrices connected to the cs and the cr inputs. these matrices are used for sensor offset calibration and are programmable in 8-bit steps (86ff/step). the gain is programmable with 8-bits resolution and sets the range for how much the measured capacitance can change. MAS6512 includes an internal temperature sensor for temperature compensation purposes. a multiplexer in the front-end is used to select eith er the external capacitive sensor or the internal temperature sensor. trim and calibration coefficients can be stored in the 256-bit eeprom memory. the stored trim values for the oscillator frequency, offset capacitance and gain are automatically read from the eeprom memory in the beginning of each conversion. to avoid modification of the eeprom by mistake there is an eeprom write enable register which needs to be set to %01010101 (55 hex ) before any changes can be done to the eeprom. MAS6512 has an internal clock oscillator making an external clock unnecessary. to save power it?s turned on only when a conversion is running. the frequency is trimmed to 200khz using a 6-bit register. an external clock, connected to the oscout pin, can however be used when a specific test mode is chosen. this might be necessary when measuring large capacitance since a slower clock frequency is needed in this case. MAS6512 includes a 1.8v regulator that can be disabled in capacitance measurement mode. in temperature measurement mode the regulator is always used. the regulator is turned off between conversions. communication with MAS6512 is handled by the serial interface compatible with either a bi- directional 2-wire i 2 c ? bus or a 4-wire spi bus. the xspi pin is for selecting which bus type is used. the xclr pin can be used to reset the device including the serial communication. the eoc pin indicates if a conversion has finished and the result is ready to be read from the memory via the serial interface. miso sda/mosi scl/sclk mux temp ? control i2c / spi eeprom clk osc xcs xspi eoc xclr cs cc cr vdd gnd gnd vreg test vreg test1 test2 vdd oscout
da6512.000 11 july, 2012 3 (26) absolute maximum ratings all voltages with respect to ground parameter symbol conditions min max unit supply voltage v dd -0.3 5.0 v voltage range for all pins -0.3 v dd + 0.3 v latchup current limit i lut for all pins, test according to jesd78a. -100 +100 ma junction temperature t jmax + 150 c storage temperature t s note 1 - 55 +125 c note 1: see eeprom memory data retention at hot tem perature. storage or bake at hot temperatures will reduce the wafer level trimming and calibration data retention time. note: the absolute maximum rating values are stress ratings only. functional operation of the device a t conditions between maximum operating conditions and absolute maximum ratings i s not implied and eeprom contents may be corrupted. exposure to these conditions for extended periods may affect device reliability (e.g. hot carrier degradation, oxide breakdown). ap plying conditions above absolute maximum ratings may be destructive to the devices. note: this is a cmos device and therefore it should be handled carefully to avoid any damage by static voltages (esd). recommended operation conditions parameter symbol conditions min typ max unit supply voltage v dd internal regulator disabled internal regulator enabled 1.8 1.9 2.7 2.7 3.6 3.6 v supply voltage at eeprom programming v dd t=+25c. note 1. 3.0 3.3 3.6 v operating temperature t a -40 +25 +85 c note 1. the recommended condition for eeprom progra mming is room temperature. electrical characteristics operating conditions: vdd = 2.7 v, t a = -40c to +85c, typical values at t a = +27c, unless otherwise specified. parameter symbol conditions min typ max unit internal regulator voltage vreg regulator enabled 1.8 v quiescent current i q all inputs at vdd, no load. note 1. 0.1 a conversion current consumption i dd_conv during conversion 390 a average current consumption i dd_ave 1 conversion/s osr=4096 osr=2048 osr=1024 osr=512 osr=256 28 14.1 7.1 3.7 1.9 a conversion time t conv osr=4096 osr=2048 osr=1024 osr=512 osr=256 82.6 41.6 21.1 10.9 5.8 ms vdd rise time for proper power on reset (por) t vdd_rise note 2. 400 ns internal system clock oscillator frequency oscout 200 khz sensor excitation frequency mclk no internal clock division internal clock division 50 25 khz note 1. setting xcs low activates the eeprom memory regardless of the xspi setting and the device cons umes 20 a ?30 a current. to minimize current consumption xcs should be set low only during time periods when the device is used du ring spi communication. note 2. resetting the device using the xclr pin is necessary in case the vdd rise time is longer than specified here.
da6512.000 11 july, 2012 4 (26) electrical characteristics operating conditions: vdd = 2.7 v, t a = -40c to +85c, typical values at t a = +27c, unless otherwise specified. parameter symbol conditions min typ max unit internal offset capacitor matrix selection c r_os , c s_os c os_step 0 0.086 22 pf changing capacitance range in capacitance difference mode ? c diff no internal clock division internal clock / 2 2 2 20 30 pf maximum allowed sensor capacitance in capacitance difference mode c s_max internal clock internal clock / 2 external clock 20 40 note 1. pf changing capacitance range in capacitance ratio mode ? c ratio note 2. 2 20 pf maximum allowed sensor capacitance in capacitance ratio mode c s_max note 2. 20 >20 pf integral nonlinearity inl osr=256, capacitance difference mode 0.012 % of ? c rms resolution difference mode code diff ~(c s -c r ) ? c=20pf osr=4096 14 bit rms resolution ratio mode code ratio ~(c s -c r )/c s ? c=20pf osr=4096 14 bit internal temperature sensor linearity 0.35 0.5 c gain osr=4096 osr=2048 osr=1024 osr=512 osr=256 267,8 267,6 267,3 33,3 4,1 lsb/ c non-calibrated, note 3. -4.5 +3.5 % offset non-calibrated, note 3. 11 c note 1. in capacitance difference mode the maximum allowed sensor and reference capacitor values can b e extended using lower external oscillator frequency; c s_max =20pf*200khz/f osc_ext . note 2. in capacitance ratio mode also larger capac itances are possible depending on sensor characteri stics. please contact micro analog systems to check sensor suitability. note 3. by calibrating the temperature measurement and compensating offset and gain errors an overall accuracy close to the linearity accuracy can be achieved.
da6512.000 11 july, 2012 5 (26) electrical characteristics operating conditions: vdd = 2.7 v, t a = -40c to +85c, typical values at t a = +27c, unless otherwise specified. parameter symbol conditions min typ max unit eeprom size 256 bit eeprom data retention t a = +85 c t a = +125 c 10 24 1 years output data word length 16 bit linear output code range (10%...90% of full output code range) code diff difference mode cs_min=8pf, cs_max=12pf, cr=10pf, gain setting 6dhex osr=256 osr=512 osr=1024 osr=2048 osr=4096 89 71 5721 5727 5731 799 6422 51494 51552 51580 code ratio ratio mode cs_min=8pf, cs_max=12pf, cr=7.68pf, gain setting 4dhex osr=256 osr=512 osr=1024 osr=2048 osr=4096 102 769 5944 5839 5786 790 6389 51362 51486 51547 full output code range code diff osr=256 osr=512 osr=1024 osr=2048 osr=4096 0 0 0 0 0 892 7152 57280 57312 57328 code ratio osr=256 osr=512 osr=1024 osr=2048 osr=4096 0 0 0 0 0 888 7136 57216 57280 57312 digital inputs parameter symbol conditions min typ max unit input high voltage v ih vdd = 1.8?3.6v 80% vdd 100% vdd v input low voltage v il vdd = 1.8?3.6v 0% vdd 20% vdd v serial bus clock frequency f scl_sclk 400 khz digital outputs parameter symbol conditions min typ max unit output high voltage v oh i source =0.6ma 80% vdd 100% vdd v output low voltage v ol i sink =0.6ma 0% vdd 20% vdd v signal rise time t r 200 ns signal fall time t f 200 ns
da6512.000 11 july, 2012 6 (26) operating modes MAS6512 has two capacitance measurement modes and one temperature measurement mode. in capacitance measurement mode the output is proportional to either capacitance difference (c s -c r ) or to capacitance ratio (c s -c r )/c s . in temperature measurement mode the output is proportional to the absolute temperature. measurement mode configuration and start of conversion is done by writing 8-bit configuration data to the measurement control register (address e2 hex ). see further details in the measurement control register chapter. MAS6512 includes a 256-bit eeprom memory for storing trim and calibration data on chip. four byt es (32 bits) of eeprom are reserved for trim values but the remaining 28 bytes (224 bits) are free for calibration and other data. the stored trim data consists of measurement configuration settings that are automatically read from eeprom memory in the beginning of each conversion. the calibration data should comprise of calibration and temperature compensation coefficients that can be used to calculate accurate calibrated sensor and temperature measurement results from the non- calibrated measurement reading. all calculations need to be done in an external micro controller uni t (mcu). a calibrated MAS6512 sensor system should be operated as illustrated in figure 2. the calibratio n and compensation coefficients need to be read to the mcu memory only once. from each pair of sensor and temperature measurement readings the accurate sensor and temperature values can then be calculated by using an external mcu. all communication with MAS6512 is done using either the i 2 c ? bus or the spi bus. starting an a/d conversion, reading the conversion result and reading and writing data from and to the eeprom memory are all accomplished via serial bus communication. in addition to the serial buses the digital interfa ce includes also end-of-conversion (eoc) and master reset (xclr) pins. see a/d conversion in the serial data interface (i 2 c ? bus) control chapter. figure 2. flow chart for a calibrated MAS6512 sensor system start read eeprom calibration data measure sensor measure temperature calculate calibrated temperature calculate temperature compensated sensor v alue
da6512.000 11 july, 2012 7 (26) register and eeprom data addresses table 1. register and eeprom data addresses a7 a6 a5 a4 a3 a2 a1 a0 i2c bus hex spi bus hex w=write r=read description note a7 1 0 0 0 0 0 x c0?c1 w: 40?41 r: c0?c1 eeprom; free for any data e a7 1 0 0 0 0 1 0 c2 w: 42 r: c2 eeprom; free for any data e a7 1 0 0 0 0 1 1 c3 w: 43 r: c3 eeprom; cs capacitor matrix trim data e+t a7 1 0 0 0 1 0 0 c4 w: 44 r: c4 eeprom; cr capacitor matrix trim data e+t a7 1 0 0 0 1 0 1 c5 w: 45 r: c5 eeprom; gain trim data e+t a7 1 0 0 0 1 1 0 c6 w: 46 r: c6 eeprom; oscillator frequency trim data e+t a7 1 0 0 0 1 1 1 c7 w: 47 r: c7 eeprom; free for any data e a7 1 0 0 1 x x x c8?cf w: 48?4f r: c8?cf eeprom; free for any data e a7 1 0 1 x x x x d0?df w: 50? 5f r: d0? df eeprom; free for any data e a7 1 1 0 0 0 0 0 e0 w: 60 r: e0 reset register; no data, only addressed for reset r a7 1 1 0 0 0 0 1 e1 w: 61 r: e1 test register r a7 1 1 0 0 0 1 0 e2 w: 62 r: e2 measurement control register r a7 1 1 0 0 0 1 1 e3 w: 63 r: e3 cs capacitor matrix register r+t a7 1 1 0 0 1 0 0 e4 w: 64 r: e4 cr capacitor matrix register r+t a7 1 1 0 0 1 0 1 e5 w: 65 r: e5 gain register r+t a7 1 1 0 0 1 1 0 e6 w: 66 r: e6 oscillator frequency control register r+t a7 1 1 0 1 0 1 0 ea w: 6a r: ea 1st (msb) byte of the conversion result r a7 1 1 0 1 0 1 1 eb w: 6b r: eb 2nd (lsb) byte of the conversion result r a7 1 1 0 1 1 0 1 ed w: 6d r: ed status register for eeprom r a7 1 1 0 1 1 1 0 ee w: 6e r: ee trimming control register r x = don?t care, e = eeprom, r= register, t = trim d ata note: when using the spi serial interface the register ad dress bit a7 is also used for selecting write (a7= 0) or read (a7=1) operation. for the i 2 c interface address bit a7 = 1.
da6512.000 11 july, 2012 8 (26) register and eeprom data addresses MAS6512 includes a 32 bytes (256 bits) eeprom data memory and eleven registers. four bytes (32 bits) of eeprom are reserved for trim values but the remaining 28 bytes (224 bits) are free for stor ing sensor calibration and other data. see table 1 on the previous page for register and eeprom data addresses. in the spi serial bus the address bit a7 selects between write (a7=0) and read (a7=1) operation. in the i 2 c serial bus a7 is always high (a7=1) and selection between write and read operation is done with the lsb bit of the i 2 c device address. see table 6 in chapter 2-wire serial data interface (i 2 c? bus). MAS6512 has four trim registers: cs capacitor matrix register (e3/63 hex ), cr capacitor matrix register (e4/64 hex ), gain register (e5/65 hex ) and oscillator frequency register (e6/66 hex ). these are marked with ?r+t? in table 1. each of these registers has a corresponding eeprom byte where trim values can be permanently stored. these are marked with ?e+t? in table 1. trim values are automatically read from eeprom in the beginning of each conversion when this feature is enabled in the trimming control register (ee/6e hex ). when disabled it is possible to test different trim data in the trim registers before final trimming values are found and stored in the eeprom. reset register (e0/60 hex ) does not contain any data. any dummy data written to this register forces a reset. a reset initializes all control registers (addresses e1 hex ?ee hex ) to a zero value. test register (e1/61 hex ) is mainly used for testing and trimming purposes. see table 2 in chapter test register. if an external clock signal is used the test register is needed for selecting the external clock signal. the measurement control register (e2/62 hex ) is used for configuring and starting an a/d conversion . the cs (e3/63 hex ) and the cr (e4/64 hex ) capacitor matrix registers contain a capacitor value between 0 and 22pf in 86ff steps. the gain register (e5/65 hex ) controls the gain of the cdc front-end. together with the cs and cr values it determines the input capacitance conversion range. the oscillator frequency control register (e6/66 hex ) is used only during internal clock oscillator trimm ing. during trimming this register value is iterated to give the desired 200khz oscillator frequency. when the best value is found it can be written to the intern al clock oscillator frequency trimming eeprom address (c6/46 hex ). in normal operation the trim value is automatically read from the eeprom memory in the beginning of each conversion. the clock frequency is trimmed by mas during wafer level testing and there should be no need to modify it. the 16-bit a/d conversion result (capacitance or temperature) is stored into two registers ea hex (msb, most significant byte) and eb hex (lsb, least significant byte). the eeprom status register (ed/6d hex ) reflects the eeprom error correction status. this register can be used to verify that the eeprom operation has finished without errors. the trimming control register (e9/69 hex ) defines if the trim data in the eeprom or in the registers are used during operation. the trimming control register is also used for enabling eeprom write. the default setting is that all trim data is automatically read from the eeprom memory in the beginning of each conversion and that the eeprom write is disabled. see the trimming control register description for details.
da6512.000 11 july, 2012 9 (26) reset register (e0/60 hex ) this register is used to reset all control register s (addresses e1 h ?ee h ) to a zero value. there are no data bits in this register. however it is necess ary to write dummy data to this register to make a rese t. the reset will take place immediately after any dat a has been written to the address e1/61 hex via the i 2 c or spi interface. test register (e1/61 hex ) in normal operation the test register value is 00 hex and the internal clock oscillator is used for all t he measurements. the sel_extclk bit enables the use of an external clock signal connected to the oscout pin. this may come necessary if the sensor capacitance is too high to be used with the interna l 200khz clock signal. sensor capacitances up to around 20pf can be measured with the internal 200khz oscillator, or up to 40pf if the internal cl ock frequency is divided by two (see soscout below). by setting the soscout bit it is possible to divide the internal clock oscillator frequency by two, giv ing a 100khz frequency. this lower clock frequency can be used for measuring up to about 40pf capacitances. for measuring larger than 40pf sensor capacitances (c s ) it is necessary to use an external clock frequency having a frequency of around f ext =200khz*20pf/cs or less. note that the frequency division selection soscout applies only to the internal clock signal. the stest bits are used for connecting different internal signals to the test1 and test2 pins. in stest[2:0]=101 test setup test1 and test2 operate as voltage inputs which are connected to the differential input of the  -adc. vtestp is the positive input and vtestn is the negative input of the  -adc. fosc can be used to force the internal oscillator t o be on all the time. normally the internal oscillato r is turned on only during the measurements to save power. table 2. MAS6512 test register ( e1/61 hex ) description bit number bit name description value function 7-6 - not used - - 5 sel_extclk selects external clock 0 1 normal mode an external clock can be connected to oscout and the internal oscillator is disabled 4-2 stest[2:0] test1 and test2 signal selection  -adc inputs connected to test1 and test2 pins 000?100 101 110?111 reserved for internal testing purpose (test1 and test2 are outputs) vtestp => test1 (input) vtestn => test2 (input) no function 1 soscout select oscout frequency 0 1 oscout = 200 khz oscout = 100 khz 0 fosc forces the oscillator on without conversion 0 1 osc is on only during conversion osc is forced on x = don?t care, sdm = sigma delta modulator
da6512.000 11 july, 2012 10 (26) measurement control register (e2/62 hex ) this register is used to configure and initiate a measurement. see table 3 below. a new conversion is started simply by writing 8-bit configuration da ta to the measurement control register (e2/62 hex ). table 3. measurement control register (e2/62 hex ) description bit number bit name description value function 7-5 osrs over sampling ratio (osr) selection 000 001 010 011 100 osr = 256 osr = 512 osr = 1024 osr = 2048 osr = 4096 4 regen regulator enable 0 1 voltage regulator disabled voltage regulator enabled 3 sco start conversion 0 1 no conversion start conversion 2 xets sensor selection 0 1 external capacitive sensor internal temperature sensor 1 - not used - - 0 xrc front end function selector 0 1 ratio converter difference converter the osrs over sampling ratio selection bits choose between five different osr values. high osr value corresponds to high resolution but also longer conversion time. see electrical characteristics for further details. the regen bit enables/disables the internal voltage regulator. when enabled the regulator is turned on during conversions and automatically turned off after each conversion to save power. during temperature measurements the regulator is always enabled regardless of the regen bit setting. note that if test register fosc=1 and if regen=1 the regulator is forced on all the time independently of measurements. the sco start conversion bit needs to be set 1 for every new measurement. it is automatically reset to 0 after each measurement. the xets sensor selection bit controls the front- end multiplexer and connects either the external capacitive sensor (xets=0) or the internal temperature sensor (xets=1) to the ? -converter. the xrc bit selects between two external capacitive sensor measurement modes. it does not have any effect on temperature measurement. in ratio converter mode the measured value will be proportional to capacitance ratio (c s -c r )/c s . in difference converter mode the measurement will be proportional to capacitance difference (c s -c r ).
da6512.000 11 july, 2012 11 (26) cs and cr capacitor matrix registers (e3/63 hex and e4/64 hex ) there are two internal capacitor matrices that add capacitance in parallel to the sensor capacitor (cs ) and the reference capacitor (cr). these offset capacitances are used to adjust the sensor signal t o an optimal range. each capacitor matrix has a selectable capacitance from 0pf up to 22pf in typical 86ff steps. the three sigma process variation of the capacitor matrix capacitance is 10%.the cs capacitor matrix register (e3/63 hex ) has a corresponding eeprom byte (c3/43 hex ) for storing the trim value. also the cr capacitor matri x register (e4/64 hex ) has corresponding eeprom byte (c4/44 hex ) for storing the trim value. after finding suitable cs and cr capacitor matrix registe r values the trim values can be stored in the non- volatile eeprom. in normal operating mode these trim values are automatically read from the eeprom during each conversion start. see also table 9 trimming control register (ee/6e hex ) for other operating modes. table 4. cs capacitor matrix register (e3/63 hex ), eeprom (c3/43 hex ) bit number bit name description value function 7-0 ocdacs cdac control bits 0 hex ?ff hex cs offset trimming table5. cr capacitor matrix register (e4/64 hex ), eeprom (c4/44 hex ) bit number bit name description value function 7-0 ocdacr cdac control bits 0 hex ?ff hex cr offset trimming gain register (e5/65 hex ) the gain register sets the excitation signal level for the capacitive sensor. the eight bits (grdac) can be programmed to values between 0 and 255. together with the cs and the cr capacitor matrix trim parameters it?s used to adjust the sensor sign al to an optimal range. the goal is to get a maximum dynamic range and keep the signal within linear input range of the ? -modulator. this condition is met when the signal minimum and maximum covers the whole linear input range. the output of MAS6512 has the following relationship to the  -modulator output: range ave out code q code ? = q ave is the average measurement result (from the over sampling) of the  -modulator and varies from 0 to 1. the code range is the maximum output code which depends on osr and measurement mode selections. see page 5 full output code range specification in the electrical characteristics tab le. the linear signal range of the modulator is from q ave =10% to q ave =90%. in case of capacitance difference measurement mode; r s ref r s ave v v c c c q ? ? ? + = 2 2 1 in this mode the gain register value grdac sets the v s level. v s = (vdd/1.8v)*(33mv+grdac*2.88mv) v r = (vdd/1.8v)*144mv c s = external sensor + cs matrix capacitance c r = external reference + cr capacitance c ref = 6pf, three sigma variation 10% in case of capacitance ratio measurement mode; s r s r ave v v c c q ? ? ?? ? ? ?? ? ? = 1 in this mode the gain register value grdac sets the v s level. v s = (vdd/1.8v)*grdac*0.52mv v r = (vdd/1.8v)*100.8mv c s = external sensor + cs matrix capacitance c r = external reference + cr capacitance the gain register (e5/65 hex ) has a corresponding eeprom byte (c5/45 hex ). after finding a suitable gain register value it can be stored in the eeprom memory. in normal operating mode the gain trim value is read automatically from the eeprom during each conversion start. table 6. gain register (e5/65 hex ), eeprom (c5/45 hex ) bit number bit name description value function 7-0 grdac rdac control bits 0 hex ?ff hex gain control by sensor excitation signal level control
da6512.000 11 july, 2012 12 (26) oscillator frequency control register (e6/66 hex ) note that the internal clock oscillator frequency h as been factory trimmed and the trim value has been stored in the eeprom (c6/46 hex ). it is recommended not to change the factory programmed value! the oscillator frequency control register (e6/66 hex ) is for trimming the internal clock oscillator to 20 0 khz frequency. this 200khz (or 100khz if soscout=1) can be measured at the oscout pin. the six lsb bits adjust the oscillator period in 104ns steps. the period increases when the trim value increases. typically a register value of 28 hex corresponds to the nominal 200khz clock oscillator frequency. after finding a suitable trim value it can be store d to the eeprom (c6/46 hex ). table 7. oscillator frequency control register (e6/66 hex ) bit number bit name description value function 5-0 oscf oscillator frequency control bits 0 hex ?3f hex oscillator frequency control eeprom status register (ed/6d hex ) the eeprom status register (ed/6d hex ) indicates if the stored eeprom byte is corrupted. the register is updated after each eeprom data byte read command. see table 8 below. the error bit tells whether an data error has been detected or not. the ded bit tells whether two or more bit erro rs have been detected. the eeprom can correct internally only single bit errors i.e. when error=1 and ded=0. the read eeprom data byte is corrupted if error=ded=1. table 8. MAS6512 eeprom status register (ed/6d hex ). only bits (7:6) are used. bit number bit name description value function 7 error eeprom error detection 0 1 no errors error detected 6 ded eeprom double error detection 0 1 no errors 2 (or more) data errors 5-0 0 - x = don?t care
da6512.000 11 july, 2012 13 (26) conversion result registers (ea ? eb hex ) after measuring capacitance or temperature the 16- bit conversion result is stored into two register addresses ea hex and eb hex . the msb (most significant byte) is at ea hex and lsb (least significant byte) at eb hex . trimming control register (ee/6e hex ) the trimming control register (ee/6e hex ) is used to select between different trimming operating modes and enabling eeprom write. see table 9 showing the functions of the trimming control register. after a power-up reset, master reset via xclr or a software reset the trimming control register (ee/6e hex ) gets the value %00000000 (00 hex ). this is the normal operating mode for a trimmed MAS6512 device. in this mode the capacitive front- end trim values to use (cs, cr and gain) are automatically read from the eeprom memory in the beginning of each conversion start. the eeprom is normally write protected. to disable the write protection the trimming control register should be set to %01010101 (55 hex ). when calibrating a sensor there is an operating mode in which only the factory calibrated internal oscillator (osc) clock trim data is read from the eeprom memory. this mode is selected by writing %10101010 (aa hex ) to the trimming control register. in this mode it is possible to run conver sion tests for different front-end trim register values before suitable values are found and programmed to the eeprom. there is also a trimming mode in which all trim dat a including the internal oscillator trim data is take n from the trim registers rather than from the eeprom. this mode is selected by writing %11111111 (ff hex ) to the trimming control register. table 9. trimming control register (ee/6e hex ) bit number bit name description value function 7-0 regee<7:0> eeprom control bits 00000000 01010101 10101010 11111111 other all trim data from eeprom (normal operating mode) eeprom write enabled only osc from eeprom all trim data from registers all trim data from eeprom
da6512.000 11 july, 2012 14 (26) eeprom write procedure figure 3. flow chart for MAS6512 eeprom write start initial conditions optional: reset device by xclr or by writing any data to the reset register 30 hex power up device connect supply voltage vdd enable eeprom writewrite 55 hex to the trimming control register ee/6e hex wait wait minimum 16ms after writing byte (8-bit) to eeprom stop disable eeprom write write 00 hex to the trimming control register ee/6e hex write data to eeprom write data byte (8-bit) to selected eeprom memory addr ess no write more data? yes verify written data read the written data byte (8-bit) from the eeprom mem ory address
da6512.000 11 july, 2012 15 (26) eeprom write procedure this chapter gives instructions for writing data to the eeprom memory. the MAS6512 16-bit capacitance to digital converter (cdc) has a 256 bit (32 bytes) eeprom memory. 8 bits (1 byte) has been reserved for storing internal clock oscillator trimming data. 24 other bits (3 bytes) are for trimming the capacitiv e sensor front-end. the remaining 232 bits (28 bytes) are free for other use. see figure 3 on previous page showing the eeprom write procedure. make sure in the beginning of the eeprom write procedure that the MAS6512 initial conditions are met. connecting vdd triggers power-on-reset (por) but to make sure the device is reset an additional reset can be given using the xclr pin or writing any data on the reset register e 0/60 hex via the serial bus. eeprom write is enabled by writing value 55 hex to the trimming control register (ee/6e hex ). the default register value after power on is 00 hex . next the data can be written to the eeprom memory one byte (8-bit) at a time. it is necessary to have a delay of minimum 16ms after programming each byte (8-bit). the success of each write can be verified by reading back the data (8-bit) and comparing it to the original byte (8-bit). addition ally it is also possible to check the eeprom status register (ed/6d hex ) value after each read back. the eeprom status register value should be 00 hex when the read eeprom data byte is free of errors. after all data bytes are written the eeprom memory can be protected from write by writing 00 hex to the trimming control register (ee/6e hex ). see table 1 showing the MAS6512 register and eeprom data addresses.
da6512.000 11 july, 2012 16 (26) 2-wire serial data interface (i 2 c ? ?? ? bus) serial interface MAS6512 has an i 2 c ? bus compatible two wire serial data interface comprising of serial clock (scl) and bi-directional serial data (sda) pins. in the i 2 c ? bus both scl & sda lines are of open- drain design, thus, external pull-up resistors are needed. the serial data interface is used to configure and start the a/d conversion and read the measurement result when the a/d conversion has finished. the digital interface includes also end of conversi on (eoc) and master reset (xclr) pins. the eoc goes high when the a/d conversion has finished. the xclr is used to reset the a/d converter. a reset initializes internal registers, counters and the serial communication bus. after connecting the supply voltage to MAS6512, and before starting operating the device via the serial bus, it is requ ired to reset the device with the xclr reset pin if the supply voltage rise time has been longer than 400 ns (typ). if the supply voltage rise time is shorte r than this making an external reset with the xclr pin is not necessary since the device is automatically reset by the power on reset (por) circuitry. it is however recommended to use the xclr reset feature to solve unexpected error state conditions. device address the i 2 c ? bus definition allows several i 2 c ? bus devices to be connected to the same bus. the devices are distinguished from each other by unique device address codes. MAS6512 device address is shown in table 10. the lsb bit of the device address defines whether the bus is configured for read (1) or write (0) operation. ec hex = write, ed hex = read. table 10. MAS6512 device address (ec/ed hex ) a7 a6 a5 a4 a3 a2 a1 w/r 1 1 1 0 1 1 0 0/1 i 2 c ? ?? ? bus protocol definitions data transfer is initiated with a start bit (s) whe n sda is pulled low while scl stays high. then, sda sets the transferred bit while scl is low and the data is sampled (received) when scl rises. when the transfer is complete, a stop bit (p) is sent by releasing the data line to allow it to be pulled up while scl is constantly high. figure 4 shows the start (s) and stop (p) bits and a data bit. data must be held stable at the sda pin when scl is high. data at the sda pin can change value only when scl is low. each sda line byte transfer must contain 8-bits where the most significant bit (msb) always comes first. each byte has to be followed by an acknowledge bit (see further below). the number of bytes transmitted per transfer is unrestricted. sda scl s p 10 figure 4. i 2 c ? bus protocol definitions bus communication includes acknowledge (a) and not acknowledge (n) messages. to send an acknowledge the receiver device pulls the sda low for one scl clock cycle. for not acknowledge (n) the receiver device leaves the sda high for one scl clock cycle in which case the master can then generate either a stop (p) bit to abort the transfe r, or a repeated start (sr) bit to start a new transfe r. abbreviations: a= acknowledge by receiver n = not acknowledge by receiver s = start sr = repeated start p = stop = from master (mcu) to slave (MAS6512) = from slave (MAS6512) to master (mcu)
da6512.000 11 july, 2012 17 (26) 2-wire serial data interface (i 2 c ? ?? ? bus) conversion starting ? write sequence conversion is started by writing configuration bits into the measurement control register (address e2 hex ). the write sequence is illustrated in table 11. table 11. MAS6512 i2c bus write sequence bits s aw a mc a dc a p abbreviations: aw = device write address (%1110 1100) ar = device read address (%1110 1101) mc = measurement control register (%1110 0010) ax = conversion result registers; msb (x=m, %1110 1010) or lsb (x=l, %1110 1011) dc = measurement control register data dx = conversion result register data; msb (x=m), isb (x=i) or lsb (x=l) each serial bus operation, like write, starts with the start (s) bit (see figure 4). after start (s) the MAS6512 device address with write bit (aw, see table 10) is sent followed by an acknowledge (a). after this the measurement control register address (see table 1) is sent and followed by an acknowledge (a). next the measurement control register data (dc, see table 3) is written and followed by an acknowledge (a). finally the serial bus operation is ended with stop (p) command (see figure 4). a/d conversion after power on reset or external reset (xclr) the eoc output is high. after an a/d conversion is started the eoc output is set low until the conversion is finished and the eoc goes back high, indicating that the conversion is done and data is ready for reading. the eoc is set low only by starting a new conversion. to save power the internal oscillator runs only during conversion. during an a/d conversion the input signal is sampled continuously leading to an output conversion result that is a weighted average of the samples taken. conversion result ? read sequence table 12 presents a general control sequence for a single register data read. table 12. MAS6512 i2c bus single register (address ax) read sequence bits s aw a ax a sr ar a dx n p table 13 shows the control sequence for reading the 16-bit a/d conversion result from the conversion result registers. the lsb (dl) register data read can follow right after the msb register data (dm) read since if the read sequence is continued (not ended by a stop bit p) the register address is automatically incremented to point to th e next register. table 13. MAS6512 i2c bus msb (first) and lsb (second) a/d c onversion result read sequence s aw a am a sr ar a dm a dl n p
da6512.000 11 july, 2012 18 (26) 4-wire serial data interface (spi bus) spi bus communication is selected by setting xspi pin low. spi communication differs from i2c bus in the following way. it requires four wires for bi-direct ional communication since each line operates in one direction only. device selection is done by using separate chip select xcs control lines instead of using device address. each spi bus device has its own xcs control line and a device is selected by pulling its xcs line low (see figure 5 below). the fourth wire in the spi bus is the serial clock line , sclk. data is transferred at rising edges of the serial clock during which the data line should be stable. the selection between write or read access is done by register address msb bit a7 (see table 1 ? register and eeprom data addresses? ). in write access bit a7 cleared (0) and in read access it is set (1). figure 5 illustrates write access communication. MAS6512 has an auto increment function which means that if there are more than one data byte transferred the additional data bytes are delivered to following register addresses. in write communication the miso line is high impedance. in spi bus communication it is good to note that setting xcs low activates the eeprom memory regardless of the xspi setting and the device consumes 20 a ?30 a current. to minimize current consumption xcs should be set low only during time periods when the device is used during spi communication. xcs sck sda miso msb lsb register address byte msb lsb data byte high z figure 5. spi protocol ? write access (register address msb b it a7=0) figure 6 illustrates read access communication. the auto increment function can be utilized also in read access and if there are more than one data byte read the additional data bytes are delivered from following register addresses. xcs sck sda miso msb lsb register address byte high z msb lsb data byte ignored figure 6. spi protocol ? read access (register address msb bi t a7=1) sclk mosi sclk mosi
da6512.000 11 july, 2012 19 (26) trimming for sensor capacitance MAS6512 has two capacitance measurement modes and a temperature measurement mode. in capacitance measurement mode the output can be proportional either to capacitance difference (c s -c r ) or to capacitance ratio (c s -c r )/c s . in temperature measurement mode the output is proportional to absolute temperature. for trimming it is necessary to know the sensor capacitance c s range c s min ?c s max . for optimal utilization of the MAS6512aa1 input range the trimming is based on selecting the minimum linear range capacitance same as c s min and maximum linear range capacitance same as c s max . at the linear range minimum and maximum limits the average of the  -modulator output is 10% and 90% respectively. in the following trimming equations we denote these by d min = 0.1 d max = 0.9 MAS6512 in capacitance difference mode the reference capacitor value c r is calculated from c r = [c s min *(d max -0.5)-c s max *(d min -0.5)] / (d max -d min ) if an external c r is used, it is connected between pins cr and cc. i f an internal c r is used, the trim code for c r is calculated from reg e4hex = (c r /c r max )*255 where c r max is nominally 22pf, but subject to 10 % (3 sigma) process variation. the reference voltage, v s, can be calculated using the following equation: v s = [144mv*(d max -d min )*2*c ref ] / (c s max -c s min ) where c ref is nominally 6 pf, but also has 10 % variation. the gain register trim value is calculated from reg e5hex = [(v s -33 mv) / 734mv]*255 reg e4hex and reg e5hex are 8-bit values, so they range from 0 to 255. whe n their values are found, the same values can be written to corresponding eeprom addre sses c4 hex and c5 hex . however, with spi bus, the address msb in write operation is 0, so the address es are actually 44 hex and 45 hex . example: single capacitance sensor c s min =8pf c s max =12pf c r = [8pf*(0.9-0.5)-12pf*(0.1-0.5)]/(0.9-0.1) = 10pf reg e4hex = (10pf/22pf)*255 = 115.9 ~ 116 v s = [144mv*(0.9-0.1)*2*6pf] / (12pf-8pf) = 345.6mv reg e5hex = [(345.6-33 mv) / 734mv]*255 = 108.6 ~109 reg e3hex = 0 (no internal c s capacitor matrix used)
da6512.000 11 july, 2012 20 (26) trimming for sensor capacitance MAS6512 in capacitance ratio mode the reference capacitor c r is calculated from c r = [c s min *c s max *(d max -d min )] / (c s max *d max -c s min *d min ) if an external c r is used, it is connected between pins cr and cc. i f an internal c r is used, the trim code for c r is calculated from reg e4hex = (c r /c r max )*255 where c r max is nominally 22pf, but subject to 10 % (3 sigma) process variation. the reference voltage, v s, can be calculated using the following equation: v s = 100.8mv * (c s max -c s min ) / (c s max *d max -c s min *d min ) the gain register trim value is calculated from reg e5hex = (v s / 133.3mv)*255 reg e4hex and reg e5hex are 8-bit values, so they range from 0 to 255. whe n their values are found, the same values can be written to corresponding eeprom addre sses c4 hex and c5 hex . however, with spi bus, the address msb in write operation is 0, so the address es are actually 44 hex and 45 hex . example: single capacitance sensor c s min =8pf c s max =12pf c r = [8pf*12pf*(0.9-0.1)] / (12pf*0.9-8pf*0.1) = 7.68p f reg e4hex = (7.68pf/22pf)*255 = 89.0 ~ 89 v s = 100.8mv*)/(12pf-8pf)/(12pf*0.9-8pf*0.1)=40.32mv reg e5hex = (40.32mv/133.3mv)*255 = 77.1 ~ 77 reg e3hex = 0 (no internal c s capacitor matrix used)
da6512.000 11 july, 2012 21 (26) application information figure 7. MAS6512 configured for i 2 c bus communication note: MAS6512 has an effective esd clamp protection structure that can be triggered if the vdd rises t oo fast. for this reason it?s recommended to use a supply de coupling capacitor having a value of 100nf or highe r to slow down the vdd rise time. accuracy improvement ? averaging an averaging technique can be used to remove conversion errors caused by noise and thus improve measurement accuracy. by doing several a/d conversions and calculating the average result it?s possible to average out noise. theoretically the noise is reduced by a factor n where n is the number of averaged samples. a/d converter nonlinearities cannot be removed by averaging. miso sda/mosi scl/sclk mux temp ? control i2c / spi eeprom clk osc xcs xspi eoc xclr cs cc cr vdd gnd optional mcu optio nal optional vdd gnd cs cr vreg test vreg test1 test2 vdd oscout gnd vdd 4k7 4k7 gnd 100n note: it is recommended to use the xclr reset feature to solve unexpected error state conditions. the xclr pin can be left unconnected i f not used. it has internal pull up to vdd.
da6512.000 11 july, 2012 22 (26) MAS6512 in qfn-16 4x4x0.75 package eoc 16 test1 15 test2 14 oscout 13 8 vreg 7 xclr 6 scl_sclk 5 sda_mosi xcs 1 xspi 2 miso 3 vdd 4 12 gnd 11 cs 10 cc 9 cr MAS6512 aa1 yyww xxxxx top marking information: MAS6512 = product number, aa1 = version number yyww = year week xxxxx = lot number qfn-16 4x4x0.75 pin description pin name pin type function xcs 1 di chip select (spi) xspi 2 di spi / i2c bus selection spi: xspi=low i2c: xspi=high miso 3 do master input slave output (spi) vdd 4 p power supply voltage sda_mosi 5 di/o serial bus data (i2c) master output salve input (spi) scl_sclk 6 di serial bus clock (i2c / spi) xclr 7 di master reset vreg 8 ao voltage regulator output 1.8v cr 9 ai reference capacitance pin cc 10 ai common capacitance pin cs 11 ai sensing capacitance pin gnd 12 g power supply ground oscout 13 di/do oscillator output test2 14 ai/o test pin 2 test1 15 do test pin 1 eoc 16 do end of conversion p = power, g = ground, do = digital output, , di = digital input, ao = analog output, ai = analog inp ut
da6512.000 11 july, 2012 23 (26) d/2 e / 2 seating plane a 1 side view top view d2 d2 / 2 e 2 / 2 e 2 b bottom view d a 3 pin 1 mark area a exposed pad shape of pin #1 identification is optional l detail a terminal tip package center line x or y e e/2 detail a package (qfn-16 4x4x0.75) outline symbol min nom max unit package dimensions a 0.700 0.750 0.800 mm a1 0.000 0.020 0.050 mm a3 0.203 ref mm b 0.250 --- 0.350 mm d 3.950 4.000 4.050 mm d2 (exposed.pad) 2.700 --- 2.900 mm e 3.950 4.000 4.050 mm e2 (exposed.pad) 2.700 --- 2.900 mm e 0.650 bsc mm l 0.350 --- 0.450 mm dimensions do not include mold or interlead flash, protrusions or gate burrs.
da6512.000 11 july, 2012 24 (26) user direction of feed w p o p 1 d 0 x x e f t b 0 k 0 r 0.25 typ p 2 a 0 soldering information u for lead-free / green qfn 4mm x 4mm resistance to soldering heat according to rsh test iec 68-2-58/20 maximum temperature 260 c maximum number of reflow cycles 3 reflow profile thermal profile parameters stated in ipc/jedec j-std-020 should not be exceeded. http://www.jedec.org lead finish solder plate 7.62 - 25.4 m, material matte tin embossed tape specifications orientation on tape dimension min/max unit a o 4.30 0.10 mm b o 4.30 0.10 mm d o 1.50 +0.1/-0.0 mm e 1.75 mm f 5.50 0.05 mm k o 1.10 0.10 mm p o 4.0 mm p 1 8.0 0.10 mm p 2 2.0 0.05 mm t 0.3 0.05 mm w 12.00 0.3 mm all dimensions in millimeters
da6512.000 11 july, 2012 25 (26) d a b c n w 1 w 2 tape slot for tape start components trailer leader carrier tape cover tape start end reel specifications dimension min max unit a 330 mm b 1.5 mm c 12.80 13.50 mm d 20.2 mm n 100 mm w 1 (measured at hub) 12.4 14.4 mm w 2 (measured at hub) 18.4 mm trailer 160 mm leader 390, of which minimum 160 mm of empty carrier tape sealed with cover tape mm reel material: conductive, plastic antistatic or st atic dissipative carrier tape material: conductive cover tape material: static dissipative
da6512.000 11 july, 2012 26 (26) ordering information product code product description MAS6512aa1wad00 capacitive sensor signal interface ic ews-tested wafer, thickness 370 m MAS6512aa1wad05 capacitive sensor signal interface ic dies on waffle pack, thickness 370 m MAS6512aa1q1706 capacitive sensor signal interface ic qfn-16 4x4x0.75 package, pb-free, rohs compliant, tape & reel, 1000 / 3000 pcs components on reel contact micro analog systems oy for other wafer thi ckness options. local distributor micro analog systems oy contacts micro analog systems oy kutomotie 16 fi-00380 helsinki, finland tel. +358 10 835 1100 fax +358 10 835 1119 http://www.mas-oy.com notice micro analog systems oy (mas) reserves the right to make changes to the products contained in this dat a sheet in order to improve the design or performance and to supply the best possib le products. mas assumes no responsibility for the use of any circuits shown in this data sheet, conveys no license under any patent or other rights unless otherwise specified in this data she et, and makes no claim that the circuits are free from patent infringement. applications for any devices shown in this data sheet are for illus tration only and mas makes no claim or warranty that such applications will be suitable fo r the use specified without further testing or modi fication. mas products are not authorized for use in safety-c ritical applications (such as life support) where a failure of the mas product would reasonably be expected to cause severe personal inj ury or death. buyers represent that they have all n ecessary expertise in the safety and regulatory ramifications of their applications, and acknowledge and agree that they are solely respons ible for all legal, regulatory and safety- related requirements concerning their products and any use of mas products in such safety-critical app lications, notwithstanding any applications-related information or support that ma y be provided by mas. further, buyers must fully in demnify mas and its representatives against any damages arising out of the use of mas p roducts in such safety-critical applications. mas products are neither designed nor intended for use in military/aerospace applications or environme nts. buyers acknowledge and agree that any such use of mas products which mas has not designated as military-grade is solely at the buye r's risk, and that they are solely responsible for compliance with all legal and regul atory requirements in connection with such use. mas products are neither designed nor intended for use in automotive applications or environments. bu yers acknowledge and agree that, if they use any non-designated products in automotive applications, mas will not be responsible for any f ailure to meet such requirements.


▲Up To Search▲   

 
Price & Availability of MAS6512

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X